﻿using ShanghaiMetroAPP.MetroDraw;
using System.Collections.Generic;

namespace ShanghaiMetroAPP.Model.SMAPPControl
{
    public class DirectionInfoListModel : BaseListModel<DirectionInfoModel>
    {
        private const string URL = "http://marketing.cyberspaceit.cn/interface/metromap/metromap.aspx";
        public static DirectionInfoListModel HttpGet(string stationCode)
        {
            var pair = new Dictionary<string, string>();
            pair.Add("func", "fltimeA");
            pair.Add("station_code", stationCode);
            return FromJson<DirectionInfoListModel>(HttpGet(URL, pair));
        }
    }
}
